# 487-3279
#Sample Input
# 12
# 4873279
# ITS-EASY
# 888-4567
# 3-10-10-10
# 888-GLOP
# TUT-GLOP
# 967-11-11
# 310-GINO
# F101010
# 888-1200
# -4-8-7-3-2-7-9-
# 487-3279

#Sample Output
# 310-1010 2
# 487-3279 4
# 888-4567 3

